package com.mrd.gtimp.business.action;

import com.mrd.gtimp.business.entity.HgData;
import com.mrd.gtimp.business.service.HgDataBiz;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;


/**
 * <p> application name: gtimp <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author qiul
 */

@Controller
@RequestMapping("/business")
public class HgDataAction {
    private static final long serialVersionUID = 1L;
    @Resource
    private HgDataBiz hgDataBiz;


    /**
     * 查询在线下单 （下拉框）2.0一线通
     */
    @RequestMapping("/hgdata-initData")
    @ResponseBody
    public Map<String, Map<String, List<HgData>>> initData() {
        try {
            return hgDataBiz.findCurrencySystem();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }


    @Resource
    public void setHgDataBiz(HgDataBiz hgDataBiz) {
        this.hgDataBiz = hgDataBiz;
    }


}
